3.4 \(\int \frac {\sin (x)}{a+a \cos (x)} \, dx\)

Optimal. Leaf size=10 \[ -\frac {\log (\cos (x)+1)}{a} \]

[Out]

-ln(1+cos(x))/a

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2667, 31} \[ -\frac {\log (\cos (x)+1)}{a} \]

Antiderivative was successfully verified.

[In]

Int[Sin[x]/(a + a*Cos[x]),x]

[Out]

-(Log[1 + Cos[x]]/a)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2667

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(b^p*f), S
ubst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x]
&& IntegerQ[(p - 1)/2] && EqQ[a^2 - b^2, 0] && (GeQ[p, -1] ||  !IntegerQ[m + 1/2])

Rubi steps

\begin {align*} \int \frac {\sin (x)}{a+a \cos (x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {1}{a+x} \, dx,x,a \cos (x)\right )}{a}\\ &=-\frac {\log (1+\cos (x))}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 12, normalized size = 1.20 \[ -\frac {2 \log \left (\cos \left (\frac {x}{2}\right )\right )}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[x]/(a + a*Cos[x]),x]

[Out]

(-2*Log[Cos[x/2]])/a

________________________________________________________________________________________

fricas [A]  time = 0.76, size = 12, normalized size = 1.20 \[ -\frac {\log \left (\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a+a*cos(x)),x, algorithm="fricas")

[Out]

-log(1/2*cos(x) + 1/2)/a

________________________________________________________________________________________

giac [A]  time = 0.37, size = 10, normalized size = 1.00 \[ -\frac {\log \left (\cos \relax (x) + 1\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a+a*cos(x)),x, algorithm="giac")

[Out]

-log(cos(x) + 1)/a

________________________________________________________________________________________

maple [A]  time = 0.03, size = 13, normalized size = 1.30 \[ -\frac {\ln \left (a +a \cos \relax (x )\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)/(a+a*cos(x)),x)

[Out]

-ln(a+a*cos(x))/a

________________________________________________________________________________________

maxima [A]  time = 0.63, size = 12, normalized size = 1.20 \[ -\frac {\log \left (a \cos \relax (x) + a\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a+a*cos(x)),x, algorithm="maxima")

[Out]

-log(a*cos(x) + a)/a

________________________________________________________________________________________

mupad [B]  time = 0.06, size = 10, normalized size = 1.00 \[ -\frac {\ln \left (\cos \relax (x)+1\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)/(a + a*cos(x)),x)

[Out]

-log(cos(x) + 1)/a

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 8, normalized size = 0.80 \[ - \frac {\log {\left (\cos {\relax (x )} + 1 \right )}}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a+a*cos(x)),x)

[Out]

-log(cos(x) + 1)/a

________________________________________________________________________________________